package kr.hkit.PowerJava.chapter08.work;

    
public class Programming1 {

    private int r;
	private int cx;
    private int cy;

    public double area(){
		double z = r * r * 3.14;
    	return z;}
	public int getR() {
		return r;}
	public void setR(int r) {
		this.r = r;}
	public int getCx() {
		return cx;}
	public void setCx(int cx) {
		this.cx = cx;}
	public int getCy() {
		return cy;}
	public void setCy(int cy) {
		this.cy = cy;}
	@Override
	public String toString() {
		return "Circle [r=" + r + ", cx=" + cx + ", cy=" + cy + ", area = "+area()+"]";	}
	public static void main(String[] args) {
		Programming1 o = new Programming1();
		o.setCx(3);
		o.setCy(7);
		o.setR(5);
	System.out.println(o);
	}
    }
